	 
	 function validatePost() {
			$(".postErrors").hide();
			var valid = true;
			$(".postErrors ul li").remove();
			if($("#myImage").val() == "") {
				$(".postErrors ul").append("<li class='postError'>Image is missing</li>");
			}
			if($("#username").val() == "") {
				$(".postErrors ul").append("<li class='postError'>Username is missing</li>");
			}
			if($("#title").val() == "") {
				$(".postErrors ul").append("<li class='postError'>Title is missing</li>");
			}
			
			if($("#username").val().length > 20) {
				$(".postErrors ul").append("<li class='postError'>Username is too long</li>");
			}
			if($("#title").val().length > 20) {
				$(".postErrors ul").append("<li class='postError'>Title is too long</li>");
			}
			
			if($(".postErrors ul li").length > 0)
			{
				$(".postErrors").show();
				valid = false;
			}
			return valid;
		}